<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/class/update">
        班级名称: <span th:text="${classBean.name}"></span><br>
        开班时间: <span th:text="${classBean.time}"></span><br>
        带班老师: <input type="text" th:placeholder="${classBean.teacher}" name="teacher">
        <input type="hidden" th:value="${classBean.id}" name="id">
        <input type="submit" value="提交">
    </form>
</body>
</html>